package com.yk.airline.component.analysisdata.api;

import com.yk.airline.model.CaptureMarkModel;
import com.yk.airline.model.OriginDataModel;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.util.List;

/**
 * Project Name:airlinecrawler
 * File Name:ICommonAnalysis
 * Package Name:com.yk.airline.component.analysisdata.api
 * Date:2018/2/1 09:23
 * Author:dengtianjia
 * Description:
 * Copyright (c) 2018, 重庆云凯科技有限公司 All Rights Reserved.
 */
public interface ICommonAnalysis {

    /**
     * 获取某一批次爬取的原网页
     * @param mark
     * @return
     */
    List<OriginDataModel> findOriginDataByCaptureMark(CaptureMarkModel mark);

    /**
     * 获取所有父级节点
     * @param html
     * @return
     */
    Elements getAllParentElement(String html, String path);



    void saveData(Element element, String date, CaptureMarkModel mark,String airLine);
}
